package com.nian.hbase.base.model;

import com.nian.hbase.base.model.HBaseRowModel;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhangmj
 * @date 2020/4/23 17:30
 */
public class HBaseTableModel implements Serializable {

    private String tableName;

    private List<HBaseRowModel> columnList;

    private String[] familyList;

    private int flag = 0;

    public HBaseTableModel(String tableName) {}

    public HBaseTableModel(String tableName, List<HBaseRowModel> columnList) {
        this.tableName = tableName;
        this.columnList = columnList;
    }

    public HBaseTableModel(String tableName, List<HBaseRowModel> columnList, String[] familyList) {
        this.tableName = tableName;
        this.columnList = columnList;
        this.familyList = familyList;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public List<HBaseRowModel> getColumnList() {
        return columnList;
    }

    public void setColumnList(List<HBaseRowModel> columnList) {
        this.columnList = columnList;
    }

    public String[] getFamilyList() {
        return familyList;
    }

    public void setFamilyList(String[] familyList) {
        this.familyList = familyList;
    }

    public int getFlag() {
        return flag;
    }

    public void addFlag() {
        this.flag = this.flag + 1;
    }
}
